package com.common.model;

import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * 数组地图
 *
 * @author think
 * @version 1.0.0
 * @since 2020/2/18
 */
@Getter
@Setter
public class Node {
    private int x;
    private int y;
    private int prex;
    private int prey;

    private int val;
    public List<Node> neighbors;

    public Node(int x, int y, int prex, int prey) {
        this.x = x;
        this.y = y;
        this.prex = prex;
        this.prey = prey;
    }

    public Node(int val, List<Node> neighbors) {
        this.val = val;
        this.neighbors = neighbors;
    }
}
